package com.guohong;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

import com.guohong.filter.AccessFilter;

@EnableZuulProxy
@SpringBootApplication
public class ZuulApplication {
	public static void main(String[] args) {
		new SpringApplication().run(ZuulApplication.class, args);
	}

	@Bean
	public AccessFilter accessFilter() {
		return new AccessFilter();
	}

}
